package com.guoxin.adapter.objectdapter;

public class Phone {

	public void charing(IVoltage5V iVoltage5V) {
		if (iVoltage5V.output5V() == 5) {
			System.out.println("电压为 5V, 可以充电~~");
		}else {
			System.out.println("电压不是 5V, 不能充电~~");
		}
	}
}
